package top.ezzz.model;


import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
public class ReceiveInfo {

    private String address;

    private int total;

    private List<Mail> mails = new ArrayList<>();


    @Getter
    @Setter
    public static class Mail {

        private int ind;

        private String fromFrom;

        private String toTo;

        private String subject;

        private String content;

        private String dateMail;

        @Override
        public String toString() {
            return "Mail{" +
                    "序号-index=" + ind +
                    ", 发件人-from='" + fromFrom + '\'' +
                    ", 收件人-to='" + toTo + '\'' +
                    ", 主题-subject='" + subject + '\'' +
                    ", 内容-content='" + content + '\'' +
                    ", 日期-date='" + dateMail + '\'' +
                    '}';

        }
    }


}
